<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>继承关系-家业</title>
	</head>
	<body>
		<script type="text/javascript">
			class Yangyhuan{
				constructor(name){
					this.name = name;
				}
				money(){
					console.log('资产',123456789);
				}
				work(){
					console.log('华清池...');
				}
			}
			class Lixyue extends Yangyhuan{
				constructor(name){
					super(name);
					this.name = name;
				}
				work(){
					console.log('骊山...');
				}
			}
			var li = new Lixyue('李希月');
			li.money();
			li.work();
		</script>
	</body>
</html>